package com.share.design.flyweight;

import lombok.AllArgsConstructor;

/**
 * author:caifan
 * date:2020/2/6
 */
@AllArgsConstructor
public class ConcreteFlyweight implements Flyweight {
    private String key;

    @Override
    public void operation(UnsharedConcreteFlyweight state) {
        System.out.println("具体享元信息:" + key);
        System.out.println("非享元信息：" + state.getInfo());
    }
}
